<template>
	<view class="nav-wrap">
		<view class="nav-wrap-title">
			<view class="nav-wrap-title-left">云村出品</view>
			<view class="nav-wrap-title-right">
				<text>更多></text>
			</view>
		</view>
		<scroll-view scroll-x class="scroll">
			<view class="scroll-box">
				<view v-for="(item,index) in recommendMv" :key="index" class="scroll-box-item">
					<view class="scroll-box-item-icon">
						<image :src="item.cover" class="scroll-box-item-icon-img" style="width: 120px;height: 120px;"></image>
					</view>
					<view class="">
						<text>{{item.name}}</text>
					</view>
				</view>
			</view>
		</scroll-view>
	</view>
</template>

<script>
	export default {
		props: ['recommendMv']
	}
</script>

<style lang="scss">
	.nav-wrap {
		width: 750rpx;
		height: 480rpx;
		white-space: nowrap;
		border-top: 5rpx solid #f3f3f3;
		margin-top: 15px;
		display: table;

		&-title {
			display: flex;
			justify-content: space-between;
			width: 100%;
			padding: 15rpx 20rpx;

			&-left {
				// display: flex;
			}

			&-right {
				width: 110rpx;
				height: 40rpx;
				border: 1px solid #ccc;
				border-radius: 10px;
				text-align: center;
				margin-left: 5px;
			}
		}

	}

	.scroll {
		border: 1px solid red;
		&-box{
			width: 750rpx;
			height: 180rpx;
			white-space: nowrap;
			border-bottom: 1rpx solid #f3f3f3;
			border: 1px solid red;
			&-item{
				display: inline-block;
				margin-left: 50rpx;
				border: 1rpx solid red;
				
				&:last-child {
					margin-right: 30rpx;
				}
				&-icon{
					width: 460rpx;
					height: 290rpx;
					&-img{
						width: 460rpx;
						height: 290rpx;
					}
				}
			}
			
		}
	}
</style>
